package com.atguigu.lease.web.admin.service.impl;

import com.atguigu.lease.model.entity.LabelInfo;
import com.atguigu.lease.model.entity.RoomLabel;
import com.atguigu.lease.web.admin.mapper.RoomLabelMapper;
import com.atguigu.lease.web.admin.service.RoomLabelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【room_label(房间&标签关联表)】的数据库操作Service实现
 * @createDate 2023-07-24 15:48:00
 */
@Service
public class RoomLabelServiceImpl extends ServiceImpl<RoomLabelMapper, RoomLabel>
        implements RoomLabelService {
    @Autowired
    private RoomLabelMapper roomLabelMapper;

    /**
     * 获取标签信息
     *
     * @param id
     * @return
     */
    @Override
    public List<LabelInfo> getLabelInfo(Long id) {
        List<LabelInfo> labelInfoList = roomLabelMapper.getLabelInfo(id);
        return labelInfoList;

    }
}




